module.exports = {
  presets: [
    [
      "@babel/preset-env",
      {
        corejs: 3,
        // useBuiltIns: false, // 不适用polyfill进行转换
        useBuiltIns: "usage", // 只对使用的js polyfill
        // useBuiltIns: "entry", // 从入口开始polyfill
      },
    ],
    [
      "@babel/preset-typescript",
      {
        corejs: 3,
        useBuiltIns: "usage",
      },
    ],
  ],
};
